package com.ruoyi.leavetime.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.employeeInfomation.domain.SalaryEmployee;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 请假时间对象 salary_leave_time
 *
 * @author ruoyi
 * @date 2024-08-12
 */
@TableName(resultMap = "com.ruoyi.leavetime.mapper.SalaryLeaveTimeMapper.SalaryLeaveTimeResult")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class  SalaryLeaveTime extends BaseEntity
        {
private static final long serialVersionUID = 1L;

    /** id */
        @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /** 员工表_id */
            @Excel(name = "员工表_id")
    private Long employeeId;

    /** 请假开始时间 */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @Excel(name = "请假开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date leaveStartTime;

    /** 请假结束时间 */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @Excel(name = "请假开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date leaveEndTime;

    /** 请假月 */
            @JsonFormat(pattern = "yyyy-MM-dd")
            @Excel(name = "请假月", width = 30, dateFormat = "yyyy-MM-dd")
    private String monthOfLeave;

            private String leaveDays;

            private SalaryEmployee salaryEmployee;







@Override
public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("employeeId", getEmployeeId())
            .append("leaveStartTime", getLeaveStartTime())
            .append("leaveEndTime", getLeaveEndTime())
            .append("monthOfLeave", getMonthOfLeave())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())

        .toString();
        }
        }